package com.ft.turorial.security.user.repository;

import com.ft.turorial.security.user.domain.User;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

/**
 * Created by Administrator on 2016/12/27.
 */
public interface UserRepository extends CrudRepository<User, Integer> {

    User findByUsername(@Param("username") String username);

}
